<template>
  <div >
      <p>{{ name }}</p>
      <Son v-model="name"></Son>
      <!-- 等同于下面 -->
      <!-- <son type="text" :value="name" @input="name=子组件传回来的值"> -->
</div>
</template>

<script type="text/javascript">
import Son from '@/components/Son.vue'
export default {
  name: "",
  data() {
    return {
        name:'grey',
    }
  },
  components: {
      Son
  }
}
</script>
